import React from 'react'
import * as icons from '@ant-design/icons'

const Icon = (props) => {
    console.log(props);
    const { icon } = props;
    const antIcon = icons;
    return React.createElement(antIcon[icon]);
};

export default Icon